import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import uView from "uview-ui";
import * as pre from "@/utils/permission.js"
import {DICT_TYPE, getDictDataLabel, getDictDatas, getDictDatas2} from '@/utils/dict.js'
import {router,RouterMount} from './router.js'
import jsQR from "jsqr"

Vue.use(plugins)
Vue.use(uView);
Vue.use(router)
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$pre = pre
Vue.prototype.getDictDatas = getDictDatas
Vue.prototype.getDictDatas2 = getDictDatas2
Vue.prototype.getDictDataLabel = getDictDataLabel
Vue.prototype.DICT_TYPE = DICT_TYPE

App.mpType = 'app'

//uni.$u.config.unit = 'rpx'

const app = new Vue({
  ...App
})
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
	RouterMount(app,router,'#app')
// #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
